Skip to content

Conversation

@lmangani
Copy link
Collaborator

@lmangani lmangani commented Nov 3, 2025

Potential fix for #27

WITH req AS ( SELECT http_post_raw( 'https://sandbox.senx.io/api/v0/exec', headers => MAP { 'accept': 'application/json' }, -- plain WarpScript body (no JSON quoting) 'REV', -- explicit content-type 'text/plain' ) AS res ) SELECT (res->>'status')::INT AS status, res->>'reason' AS reason, unnest(from_json((res->>'body')::JSON, '["VARCHAR"]')) AS version FROM req;

Potential fix for #27

```
WITH req AS ( SELECT http_post_raw( 'https://sandbox.senx.io/api/v0/exec', headers => MAP { 'accept': 'application/json' }, -- plain WarpScript body (no JSON quoting) 'REV', -- explicit content-type 'text/plain' ) AS res ) SELECT (res->>'status')::INT AS status, res->>'reason' AS reason, unnest(from_json((res->>'body')::JSON, '["VARCHAR"]')) AS version FROM req;
```
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants